import axios from '@/utils/request'
// 刷新验证码
export const getCaptcha = () => axios.get('/api/captcha?time=' + Date.now())

// 密码登录
export const login = (obj) => axios.post('/api/pwdLogin', obj)

export const getUserinfo = () => axios.get('api/getUserInfo?userId=66')

export const uploadImg = (obj) => axios.post('/api/admin/upLoadImg', obj)

export const updateUserAvatar = (obj) => axios.post('/api/updateUserAvatar', obj)
